/**
 * 实现路由组件的懒加载。
 * 组件按组分块,按需加载
 * 例子：const index = r => require.ensure([], () => r(require('../components/index')), 'index')
 **/
//const index = resolve => require(['../components/index'], resolve);
//const market = resolve => require(['../components/marketIndex'], resolve);

import index from '../components/index'
import market from '../components/marketIndex'
import newCom from '../components/new'
import allCom from '../components/all'
import activity from '../components/activity'
import my from '../components/my'

 const routes = [
   {
     path: '/',
     component: index
   },
   {// 商品详情
     path: '/marketIndex',
     component: market
   },
   {// 新品
     path: '/new',
     component: newCom
   },
   {// 全部
     path: '/all',
     component: allCom
   },
   {// 活动
     path: '/activity',
     component: activity
   },
   {// 我的
     path: '/my',
     component: my
   }
 ]


 export default routes
